import Vue from 'vue'
import App from './views'

// 引入路由
import router from './router'


// 引入状态管理器的实例模块
import store from './store'

// 注入第三方组件库
import Vant from 'vant'
import 'vant/lib/index.css'
Vue.use(Vant)

// 注册vant组件的图片的懒加载指令(v-lazy)
import { Lazyload } from 'vant'
Vue.use(Lazyload)

// 注册全局插件
import Components from './components'
Vue.use(Components)

//样式组件
import './style/index.less'

new Vue({
  // 路由实例对象注入
  router,
  store,
  render: c => c(App)
}).$mount('#root')